Skip to main content

ActionCardQuizOptions

The ActionCardQuizOptions allows for easily adding quiz options to a card.

Usage#

An example with 3 options where the first option is the correct answer

<ActionCardQuizOptions options={["option1", "option2", "option3"], correctAnswerIndex={0}}/>
caution

Max 3 options allowed

Props#

NameTypeDefaultDescription
optionsstring[]undefinedThe possible options a user can pick from. Max 3.
correctAnswerIndexnumberundefinedThe index of the correct answer in options.
onPressfunction (e: Event) => anyundefinedCallback that is called when an option is pressed.